<?php
require_once '../frm/init.php';

$user = 'ftl';
$pass = 'ftl';

$oUsr = new Ftl_SessionBO();

if ( $oUsr->isLogged() )
{
    
    echo $oUsr->getUser()->getId() . ': ' . $oUsr->getUser()->getNombre();

    

    $oUsr->logout();
    if ( !$oUsr->isLogged() )
    {
        echo "logout";
    }
}
else
{
    $oUsr = Ftl_SessionBO::login($user, $pass);
    Ftl_Redirect::toPage('testsession.php');
}




?>
